﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Web;

namespace DICOM_PROJECT.Models
{
    public class ImageVisit
    {
        [Display(Name = "ImageVisit ID")]
        public int ImageVisitID { get; set; }

        [Display(Name = "Patient ID")]
        [ForeignKey("Patient")]
        public int PatientID { get; set; }

        [Display(Name = "Radiologist ID")]
        [ForeignKey("Radiologist")]
        public int RadiologistID { get; set; }

        [Display(Name = "Create Date")]
        [DataType(DataType.DateTime)]
        [DisplayFormat(DataFormatString = "{0:dd/MM/yyyy}", ApplyFormatInEditMode = true)]
        public DateTime CreateDate { get; set; }

        [Display(Name = "Description")]
        public string Description { get; set; }

        public byte[] Dicom { get; set; }

        public virtual Patient Patient { get; set; }

        public virtual Radiologist Radiologist { get; set; }
    }
}